import { TerminalIcon, TrendingDownIcon, TrendingUpIcon } from "lucide-react";

export function Issues() {
  return (
    <div className="grid auto-rows-min grid-cols-5 gap-4">
      <div className="flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm">
        <div className="flex items-center justify-between border-border border-b px-4 py-2 ">
          <div className="flex items-center gap-2 text-sm">
            <TerminalIcon className="size-4 text-primary" />
            <p className="font-semibold">Failed</p>
          </div>
          <div className="flex items-center gap-2 text-destructive text-xs opacity-75">
            <TrendingUpIcon className="size-3.5" />
            <p>1.50%</p>
          </div>
        </div>
        <div className="flex flex-col p-4">
          <p className="font-bold text-2xl">7.05%</p>
          <p className="text-xs opacity-75">from this month 143 tasks</p>
        </div>
      </div>
      <div className="flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm">
        <div className="flex items-center justify-between border-border border-b px-4 py-2 ">
          <div className="flex items-center gap-2 text-sm">
            <TerminalIcon className="size-4 text-primary" />
            <p className="font-semibold">Bug</p>
          </div>
          <div className="flex items-center gap-2 text-primary text-xs opacity-75">
            <TrendingUpIcon className="size-3.5" />
            <p>10.50%</p>
          </div>
        </div>
        <div className="flex flex-col p-4">
          <p className="font-bold text-2xl">32.00%</p>
          <p className="text-xs opacity-75">from this month 143 tasks</p>
        </div>
      </div>
      <div className="flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm">
        <div className="flex items-center justify-between border-border border-b px-4 py-2 ">
          <div className="flex items-center gap-2 text-sm">
            <TerminalIcon className="size-4 text-primary" />
            <p className="font-semibold">Script</p>
          </div>
          <div className="flex items-center gap-2 text-primary text-xs opacity-75">
            <TrendingDownIcon className="size-3.5" />
            <p>9.00%</p>
          </div>
        </div>
        <div className="flex flex-col p-4">
          <p className="font-bold text-2xl">45.00%</p>
          <p className="text-xs opacity-75">from this month 143 tasks</p>
        </div>
      </div>
      <div className="flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm">
        <div className="flex items-center justify-between border-border border-b px-4 py-2 ">
          <div className="flex items-center gap-2 text-sm">
            <TerminalIcon className="size-4 text-primary" />
            <p className="font-semibold">Env</p>
          </div>
          <div className="flex items-center gap-2 text-primary text-xs opacity-75">
            <TrendingDownIcon className="size-3.5" />
            <p>10.50%</p>
          </div>
        </div>
        <div className="flex flex-col p-4">
          <p className="font-bold text-2xl">5.00%</p>
          <p className="text-xs opacity-75">from this month 143 tasks</p>
        </div>
      </div>
      <div className="flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm">
        <div className="flex items-center justify-between border-border border-b px-4 py-2 ">
          <div className="flex items-center gap-2 text-sm">
            <TerminalIcon className="size-4 text-primary" />
            <p className="font-semibold">Env</p>
          </div>
          <div className="flex items-center gap-2 text-primary text-xs opacity-75">
            <TrendingDownIcon className="size-3.5" />
            <p>10.50%</p>
          </div>
        </div>
        <div className="flex flex-col p-4">
          <p className="font-bold text-2xl">5.00%</p>
          <p className="text-xs opacity-75">from this month 143 tasks</p>
        </div>
      </div>
    </div>
  );
}
